package com.haierp.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.apache.commons.lang.time.DateFormatUtils;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * 采购小程序发现商品表
 * @author wangkan
 *
 */
public class FindItem implements Serializable{

	/** 主键id */
	@TableId(type = IdType.AUTO)
	private Long id;
	private String name;
	@TableField(value = "category_id")
	private Long categoryId;
	@TableField(value = "category_name")
	private String categoryName;
	@TableField(value = "item_code")
	private  String itemCode;
	@TableField(value = "is_new")
	private Integer isNew;
	@TableField(value = "sale_type")
	private Integer saleType;
	@TableField(value = "main_pic")
	private String mainPic;
	@TableField(value = "item_short")
	private String itemShort;
	@TableField(value = "en_name")
	private String enName;
	private String brand;
	private Integer country;
	private Integer currency;
	@TableField(value = "buy_site")
	private String buySite;
	private String  origin;
	private Double  freight;
	private Double  weight;
	private String  unit;
	private String  source;
	private String promotion;
	@TableField(value = "contact_person")
	private String contactPerson;
	@TableField(value = "contact_tel")
	private String contactTel;
	@TableField(value = "id_card")
	private Integer idCard;
	@TableField(value = "start_date")
	private Date startDate;
	@TableField(value = "end_date")
	private Date endDate;
	@TableField(value = "booking_date")
	private Date bookingDate;
	@TableField(value = "is_sale")
	private Integer isSale;
	@TableField(value = "wxis_sale")
	private Integer wxisSale;
	@TableField(value = "is_find")
	private Integer isFind;
	@TableField(value = "buyer_id")
	private Long buyerId;
	@TableField(value = "buyer_name")
	private String buyerName;
	@TableField(value = "refuse_reason")
	private String refuseReason;
	@TableField(value = "purchase_status")
	private Integer purchaseStatus;
	@TableField(value = "gmt_create")
	private Date gmtCreate;
	@TableField(value = "gmt_modify")
	private Date gmtModify;
	@TableField(value = "user_create")
	private String userCreate;
	@TableField(value = "user_modify")
	private String userModify;
	@TableField(value = "price_range")
	private String priceRange;
	@TableField(exist = false)
	private  List<FindItemSku> itemSkus = new ArrayList<FindItemSku>();
	@TableField(exist = false)
	private   String skuList;
	//商品状态 0新档 1上架 2下架 3删除
	private Integer status;
	
	private String remark; //商品描述信息
	
	private String detail;//商品详情，同步到有赞
	
	private String spec;//规格
	
	private String model;//型号
	
	@TableField(value = "logistic_type")
	private Integer logisticType;
	
	@TableField(exist = false)
	private String outerAlias;	//有赞商品链接
	
	@TableField(exist = false)
	private String sexStyle;	//男女款式
	
	@TableField(exist = false)
	private String salePriceStr;   //价格区间
	@TableField(exist = false)
	private Integer totalSysInventory;   //总库存(所有sku库存相加)
	
	@TableField(exist = false)
	private Integer saleCount;   //总销量
	
	@TableField(exist = false)	//颜色列表
	private  List<String> colorList = new ArrayList<String>();
	
	@TableField(exist = false)	//尺寸列表
	private  List<String> scaleList = new ArrayList<String>();
	
	private String reason;
	
	@TableField(value = "find_address")
	private String findAddress;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Long getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}
	public String getCategoryName() {
		return categoryName;
	}
	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	public String getItemCode() {
		return itemCode;
	}
	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}
	public Integer getIsNew() {
		return isNew;
	}
	public void setIsNew(Integer isNew) {
		this.isNew = isNew;
	}
	public Integer getSaleType() {
		return saleType;
	}
	public void setSaleType(Integer saleType) {
		this.saleType = saleType;
	}
	public String getMainPic() {
		return mainPic;
	}
	public void setMainPic(String mainPic) {
		this.mainPic = mainPic;
	}
	public String getItemShort() {
		return itemShort;
	}
	public void setItemShort(String itemShort) {
		this.itemShort = itemShort;
	}
	public String getEnName() {
		return enName;
	}
	public void setEnName(String enName) {
		this.enName = enName;
	}
	
	public String getBuySite() {
		return buySite;
	}
	public void setBuySite(String buySite) {
		this.buySite = buySite;
	}
	public String getOrigin() {
		return origin;
	}
	public void setOrigin(String origin) {
		this.origin = origin;
	}

	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public String getPromotion() {
		return promotion;
	}
	public void setPromotion(String promotion) {
		this.promotion = promotion;
	}
	public String getContactPerson() {
		return contactPerson;
	}
	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
	}
	public String getContactTel() {
		return contactTel;
	}
	public void setContactTel(String contactTel) {
		this.contactTel = contactTel;
	}
	public Integer getIdCard() {
		return idCard;
	}
	public void setIdCard(Integer idCard) {
		this.idCard = idCard;
	}

	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}
	
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public Integer getIsSale() {
		return isSale;
	}
	public void setIsSale(Integer isSale) {
		this.isSale = isSale;
	}
	public Integer getIsFind() {
		return isFind;
	}
	public void setIsFind(Integer isFind) {
		this.isFind = isFind;
	}
	public Date getGmtCreate() {
		return gmtCreate;
	}
	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}
	public Date getGmtModify() {
		return gmtModify;
	}
	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}
	public String getUserCreate() {
		return userCreate;
	}
	public void setUserCreate(String userCreate) {
		this.userCreate = userCreate;
	}
	public String getUserModify() {
		return userModify;
	}
	public void setUserModify(String userModify) {
		this.userModify = userModify;
	}
	/*public List<FindItemSku> getItemSkus() {
		return itemSkus;
	}
	public void setItemSkus(List<FindItemSku> itemSkus) {
		this.itemSkus = itemSkus;
	}*/

	public Integer getCountry() {
		return country;
	}
	public void setCountry(Integer country) {
		this.country = country;
	}
	public Integer getCurrency() {
		return currency;
	}
	public void setCurrency(Integer currency) {
		this.currency = currency;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	

	public String getSpec() {
		return spec;
	}
	public void setSpec(String spec) {
		this.spec = spec;
	}
	public String getModel() {
		return model;
	}
	public void setModel(String model) {
		this.model = model;
	}
	public Double getFreight() {
		return freight;
	}
	public void setFreight(Double freight) {
		this.freight = freight;
	}
	public Double getWeight() {
		return weight;
	}
	public void setWeight(Double weight) {
		this.weight = weight;
	}
	public String getSkuList() {
		return skuList;
	}
	public void setSkuList(String skuList) {
		this.skuList = skuList;
	}
	public String getBrand() {
		return brand;
	}
	public void setBrand(String brand) {
		this.brand = brand;
	}
	public String getOuterAlias() {
		return outerAlias;
	}
	public void setOuterAlias(String outerAlias) {
		this.outerAlias = outerAlias;
	}
	public String getDetail() {
		return detail;
	}
	public void setDetail(String detail) {
		this.detail = detail;
	}
	public String getStartDateStr() {
		if(startDate!=null){
		 return DateFormatUtils.format(startDate, DateFormatUtils.ISO_DATE_FORMAT.getPattern());
		}
		return "";
	}
	
	public String getEndDateStr() {
		if(endDate!=null){
		  return DateFormatUtils.format(endDate, DateFormatUtils.ISO_DATE_FORMAT.getPattern());
		}
		return "";
	}
	public Integer getLogisticType() {
		return logisticType;
	}
	public void setLogisticType(Integer logisticType) {
		this.logisticType = logisticType;
	}
	public String getSexStyle() {
		return sexStyle;
	}
	public void setSexStyle(String sexStyle) {
		this.sexStyle = sexStyle;
	}
	public String getSalePriceStr() {
		return salePriceStr;
	}
	public void setSalePriceStr(String salePriceStr) {
		this.salePriceStr = salePriceStr;
	}
	public Integer getTotalSysInventory() {
		return totalSysInventory;
	}
	public void setTotalSysInventory(Integer totalSysInventory) {
		this.totalSysInventory = totalSysInventory;
	}
	public Integer getSaleCount() {
		return saleCount;
	}
	public void setSaleCount(Integer saleCount) {
		this.saleCount = saleCount;
	}
	public List<String> getColorList() {
		return colorList;
	}
	public void setColorList(List<String> colorList) {
		this.colorList = colorList;
	}
	public List<String> getScaleList() {
		return scaleList;
	}
	public void setScaleList(List<String> scaleList) {
		this.scaleList = scaleList;
	}
	public String getPriceRange() {
		return priceRange;
	}
	public void setPriceRange(String priceRange) {
		this.priceRange = priceRange;
	}
	public Long getBuyerId() {
		return buyerId;
	}
	public void setBuyerId(Long buyerId) {
		this.buyerId = buyerId;
	}
	public String getBuyerName() {
		return buyerName;
	}
	public void setBuyerName(String buyerName) {
		this.buyerName = buyerName;
	}
	public Integer getPurchaseStatus() {
		return purchaseStatus;
	}
	public void setPurchaseStatus(Integer purchaseStatus) {
		this.purchaseStatus = purchaseStatus;
	}
	public String getReason() {
		return reason;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
	public String getFindAddress() {
		return findAddress;
	}
	public void setFindAddress(String findAddress) {
		this.findAddress = findAddress;
	}
	public String getRefuseReason() {
		return refuseReason;
	}
	public void setRefuseReason(String refuseReason) {
		this.refuseReason = refuseReason;
	}
	public Date getBookingDate() {
		return bookingDate;
	}
	public void setBookingDate(Date bookingDate) {
		this.bookingDate = bookingDate;
	}
	public Integer getWxisSale() {
		return wxisSale;
	}
	public void setWxisSale(Integer wxisSale) {
		this.wxisSale = wxisSale;
	}
	public List<FindItemSku> getItemSkus() {
		return itemSkus;
	}
	public void setItemSkus(List<FindItemSku> itemSkus) {
		this.itemSkus = itemSkus;
	}
	
}
